@import './mixin.styl';
@import './config.styl';

.container {
	width: 1226px;
	margin-right: auto;
	margin-left: auto;
	position: relative;
}

a {
	img {
		width: 100%;
		height: 100%;
	}
}

input {
	outline: none;
	box-sizing: border-box;
	font-size: 14px;
}
// 浮动
.fl {
	float: left;
}

.fr {
	float: right;
}
// 清楚浮动
.clearfix:before, .clearfix:after {
	content: '';
	display: table;
}

.clearfix:after {
	clear: both;
}

// flex: 1
.f1 {
	flex: 1	
}
.f2 {
	flex: 2
}
.f3 {
	flex: 3	
}
.f4 {
	flex: 4	
}
.f5 {
	flex: 5	
}

// 公共logo
.header-logo {
	display: inline-block;
	height: 55px;
	width: 55px;
	background-color: $colorA;

	a {
		display: inline-block;
		width: 110px;
		height: 55px;

		&:before {
			content: ' ';
			bgImg(55px, 55px, '/imgs/mi-logo.png', 55px);
			transition: margin 0.2s;
		}

		&:after {
			content: ' ';
			bgImg(55px, 55px, '/imgs/mi-home.png', 55px);
		}

		&:hover:before {
			margin-left: -55px;
			transition: margin 0.2s;
		}
	}
}
